-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHPAM-4889: using a feature flag to enable/disable strict mode. #1606
Conversation
… STRICT) to enable/disable strict mode. by default it'll continue behave as before this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice solution @porcelli
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree with the solution. in my opinion is not a good solution as it is to restricted.
I would create a property like
"jbpm.wb.query.location" where you can specify where to find the query definitions.
we look first in the resources on the class loader and after in the file system (if not found). so it lets the control to the user.
have a file provided by user is not a bad idea, in the other hand none of those files were supposed to leak to users.... and any inconsistency will break BC. I think a compromised solution, still scoping to minimal possible impact due to product:codebase lifecycle... we could have the strict file being asked by input... and strict file basically only cares about the pair of query name and target. |
unblocking this. but disagree with the solution as an URI will be more effective in the future. |
guys you merged PR change with RED CI, i will revert it
|
…roup#1606) * RHPAM-4889: using a feature flag (jbpm.wb.querymode values DEFAULT or STRICT) to enable/disable strict mode. by default it'll continue behave as before this change. * RHPAM-4889: reducing duplication.
my bad @mareknovotny - have an updated PR that re-introduces the fix without the PMD issues -> #1607 |
…roup#1606) * RHPAM-4889: using a feature flag (jbpm.wb.querymode values DEFAULT or STRICT) to enable/disable strict mode. by default it'll continue behave as before this change. * RHPAM-4889: reducing duplication.
…om openshift env vars (#1608) * RHPAM-4889: using a feature flag to enable/disable strict mode. (#1606) * RHPAM-4889: using a feature flag (jbpm.wb.querymode values DEFAULT or STRICT) to enable/disable strict mode. by default it'll continue behave as before this change. * RHPAM-4889: reducing duplication. * RHPAM-4889: adjustments to make it easier to consume from openshift env vars * Code review addressed --------- Co-authored-by: Alex Porcelli <alex@porcelli.me>
…t env vars (#1607) * RHPAM-4889: using a feature flag to enable/disable strict mode. (#1606) * RHPAM-4889: using a feature flag (jbpm.wb.querymode values DEFAULT or STRICT) to enable/disable strict mode. by default it'll continue behave as before this change. * RHPAM-4889: reducing duplication. * RHPAM-4889: adjustments to make it easier to consume from openshift env vars * to solve @tomasdavidorg review comment --------- Co-authored-by: Marek Novotný <hotmana76@gmail.com>
…t env vars (#1607) * RHPAM-4889: using a feature flag to enable/disable strict mode. (#1606) * RHPAM-4889: using a feature flag (jbpm.wb.querymode values DEFAULT or STRICT) to enable/disable strict mode. by default it'll continue behave as before this change. * RHPAM-4889: reducing duplication. * RHPAM-4889: adjustments to make it easier to consume from openshift env vars * to solve @tomasdavidorg review comment --------- Co-authored-by: Marek Novotný <hotmana76@gmail.com>
Introducing a new environment variable
jbpm.wb.querymode
with possible values DEFAULT or STRICT.If used Strict mode, the queries will be filtered.
By default it'll continue behave as before, without filtering the queries.